﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AppCommon.Animation;

namespace SyncConfig
{
    public partial class FrmNotify : Form
    {
        public static FrmNotify Current { get; set; }
        NotifyAnimationHandle animation;
        public FrmNotify()
        {
            InitializeComponent();
            animation = new NotifyAnimationHandle(SyncAppNotify);
            animation.Interval = 150;
            Current = this;
            
             
        }

        private void SyncAppNotify_DoubleClick(object sender, EventArgs e)
        {
            
        }
        public void Animation(AnimationState state)
        {
            if (state == AnimationState.Syncing)
                animation.Animation(-1);
            else
            {
                animation.Stop();
            }
        }

        private void FrmNotify_Load(object sender, EventArgs e)
        {

        }
    }
    public enum AnimationState
    {
        Syncing,
        Normal
    }
}
